package model

import "time"

// MeteringAccountToExpense 账户与费用关联表
type MeteringAccountToExpense struct {
	Id        uint64     `gorm:"primary_key" json:"id"`
	AccountId uint64     `gorm:"column:account_id" json:"account_id"` //账户id
	ExpenseId uint64     `gorm:"column:expense_id" json:"expense_id"` //费用id
	CreatedAt time.Time  `gorm:"column:created_at" json:"created_at"` //创建时间
	UpdatedAt time.Time  `gorm:"column:updated_at" json:"updated_at"` //更新时间
	DeletedAt *time.Time `gorm:"column:deleted_at" json:"deleted_at"` //删除时间
}

func (MeteringAccountToExpense) TableName() string {
	return "metering_account_to_expense"
}
